<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="csc.traning.wpsj.dao.User"%>
<%@ taglib tagdir="/WEB-INF/tags" prefix="mytags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Change Password</title>
</head>
<%
User user = (User) session.getAttribute("user");
if( user == null){
	response.sendRedirect("logon.jsp");
}
	
%>
<body>
<mytags:message color="red"/>
	<div style="width: 800px;" align="center">
		<fieldset style="min-height: 500px;">
			<legend style="color: graytext; font-weight: bold;">Change Password</legend>
			<form action="change-admin-password" method="post">
			<table>
						<tr>
							<td>Username</td>
							<td>
								<c:out value="${user.userName }"/>
							</td>		  		
						</tr>
						<tr>
							<td>Old Password:</td>
							<td>
								<input type="password" name="oldPassword" size="30px" /><span style="color:red;">*</span>
							</td>
						</tr>
						<tr>
							<td>New Password:</td>
							<td>
								<input type="password" name="newPassword" size="30px" /><span style="color:red;">*</span>
							</td>
						</tr>
						<tr>
							<td>Confirm New Password:</td>
							<td>
								<input type="password" name="confirmNewPassword" value="" size="30px" /><span style="color:red;">*</span>
							</td>
						</tr>
						<tr align="center">
							<td colspan="2"> 
								<br /><br /><input type="submit" value="Change Password" /><input type ="button" value="Cancel" onclick="window.location = 'view-employees'"/><br/>
							</td>				
						</tr>
			</table>
			</form>'
		</fieldset>
	</div>
</body>
</html>